package com.wawei.seeds.services.remote;

import com.wawei.seeds.utils.NetBase;

import retrofit.Callback;
import retrofit.http.Field;
import retrofit.http.FormUrlEncoded;
import retrofit.http.GET;
import retrofit.http.POST;
import retrofit.http.Query;

/**
 * Created by itachi on 15/7/20.
 */
public interface WalnutExpertRestfulService {
    @FormUrlEncoded
    @POST("/provider/register.action")
    void reservation(@Field("providerUserId")Integer userId,
                     @Field("providerName")String name,
                     @Field("introduce")String introduce,
                     @Field("tags")String tags,
                     @Field("token")String token,
                     Callback<NetBase> result);

    @GET("/provider/info.action")
    void getExpertInfo(@Query("providerId")String providerId, Callback<ExpertInfoRestfulWrapper> result);

    @GET("/provider/info.action")
    ExpertInfoRestfulWrapper getExpertInfo(@Query("providerId")String providerId);

}
